#ifndef ROTATIONBUTTON_H
#define ROTATIONBUTTON_H

#include <QWidget>
#include <QAbstractButton>

class rotationButton : public QAbstractButton
{
    Q_OBJECT
private:
    bool isSelected;
    int id;

public:
    explicit rotationButton(QWidget *parent = nullptr);

    int getId()const;
    void setId(int id);

protected:
    void paintEvent(QPaintEvent *e) override;
    void enterEvent(QEvent *event) override;
    void leaveEvent(QEvent *event) override;

signals:
    void entered();
    void entered(int);
};

#endif // ROTATIONBUTTON_H
